package com.isccp.efi.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.isccp.efi.dto.*;
import com.isccp.efi.service.B01301Service;
import com.isccp.efi.service.B013Service;
import com.isccp.efi.service.PackagecardService;
import com.isccp.efi.mapper.PackagecardMapper;
import com.isccp.efi.util.GetDataUtil;
import com.thoughtworks.xstream.XStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.text.SimpleDateFormat;
import java.util.*;

/**
* @author songyong
* @description 针对表【packagecard】的数据库操作Service实现
* @createDate 2023-11-23 17:13:21
*/
@Service
public class PackagecardServiceImpl extends ServiceImpl<PackagecardMapper, Packagecard>
    implements PackagecardService{

    @Resource
    private B013Service b013Service;



    private static final Logger log = LoggerFactory.getLogger(PackagecardServiceImpl.class);



    @Override
    public void synData() {
      List<Map<String,String>> list=  this.getBaseMapper().getReqList();

      for (Map<String,String> req:list){
           new Thread(new Runnable() {
               @Override
               public void run() {
                   b013Service.getData(req.get("uc"),req.get("gysbm"),req.get("password"),req.get("dprtCode"));
               }
           }).start();
      }
    }
}






